package _99练习;

public class StudentRunnable implements Runnable
{
	@Override
	public void run() 
	{
		a();
		b();
		c();
		d();
		e();
		f();
	}

	void a()
	{
		System.out.println(Thread.currentThread().getName()+"a");
		try {
			Thread.sleep(500);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}
	void b()
	{
		System.out.println(Thread.currentThread().getName()+"b");
		try {
			Thread.sleep(500);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}
	void c()
	{
		System.out.println(Thread.currentThread().getName()+"c");
		try {
			Thread.sleep(500);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}
	
	synchronized void d()
	{
		System.out.println(Thread.currentThread().getName()+"ʼִd");
		try {
			Thread.sleep(500);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		System.out.println(Thread.currentThread().getName()+"ִd");
	}
	void e()
	{
		System.out.println(Thread.currentThread().getName()+"e");
		try {
			Thread.sleep(500);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}
	void f()
	{
		System.out.println(Thread.currentThread().getName()+"f");
		try {
			Thread.sleep(500);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}
}

